<template>
  <router-view></router-view>
</template>

<script>
  import {useStore} from 'vuex'
  export default {
    name: 'App',
    components: {
    },
    setup() {
      const store = useStore();
      const jwt_token = localStorage.getItem('jwt_token');
      if(jwt_token){
        store.commit('getToken',jwt_token);
        store.dispatch('getUserInfo');
      }
      return {
      }
    },
  }
</script>

<style>
  html,body{
    margin: 0;
    padding: 0;
}
</style>
